package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Nh generated by hbm2java
 */
@Entity
@Table(name = "nh")
public class Nh implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private long ny;
    private Long ysl;
    private BigDecimal dnpjsj;
    private Long yshj;
    private Long ydl;
    private BigDecimal dnpjdj;
    private Long ydhj;
    private Long sdhj;
    private Short xh;

    public Nh()
    {
    }

    public Nh( Long id, long ny )
    {
        this.id = id;
        this.ny = ny;
    }

    public Nh( Long id,
               Jbqk jbqk,
               String username,
               String operation,
               Date optdate,
               long ny,
               Long ysl,
               BigDecimal dnpjsj,
               Long yshj,
               Long ydl,
               BigDecimal dnpjdj,
               Long ydhj,
               Long sdhj,
               Short xh )
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.ny = ny;
        this.ysl = ysl;
        this.dnpjsj = dnpjsj;
        this.yshj = yshj;
        this.ydl = ydl;
        this.dnpjdj = dnpjdj;
        this.ydhj = ydhj;
        this.sdhj = sdhj;
        this.xh = xh;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "ny", nullable = false)
    public long getNy()
    {
        return this.ny;
    }

    public void setNy( long ny )
    {
        this.ny = ny;
    }

    @Column(name = "ysl", precision = 18, scale = 0)
    public Long getYsl()
    {
        return this.ysl;
    }

    public void setYsl( Long ysl )
    {
        this.ysl = ysl;
    }

    @Column(name = "dnpjsj", precision = 18)
    public BigDecimal getDnpjsj()
    {
        return this.dnpjsj;
    }

    public void setDnpjsj( BigDecimal dnpjsj )
    {
        this.dnpjsj = dnpjsj;
    }

    @Column(name = "yshj", precision = 18, scale = 0)
    public Long getYshj()
    {
        return this.yshj;
    }

    public void setYshj( Long yshj )
    {
        this.yshj = yshj;
    }

    @Column(name = "ydl", precision = 18, scale = 0)
    public Long getYdl()
    {
        return this.ydl;
    }

    public void setYdl( Long ydl )
    {
        this.ydl = ydl;
    }

    @Column(name = "dnpjdj", precision = 18)
    public BigDecimal getDnpjdj()
    {
        return this.dnpjdj;
    }

    public void setDnpjdj( BigDecimal dnpjdj )
    {
        this.dnpjdj = dnpjdj;
    }

    @Column(name = "ydhj", precision = 18, scale = 0)
    public Long getYdhj()
    {
        return this.ydhj;
    }

    public void setYdhj( Long ydhj )
    {
        this.ydhj = ydhj;
    }

    @Column(name = "sdhj", precision = 18, scale = 0)
    public Long getSdhj()
    {
        return this.sdhj;
    }

    public void setSdhj( Long sdhj )
    {
        this.sdhj = sdhj;
    }

    @Column(name = "xh")
    public Short getXh()
    {
        return this.xh;
    }

    public void setXh( Short xh )
    {
        this.xh = xh;
    }

}
